﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Game1942.Library.Background;

namespace Game1942.Library.FlightPlans
{   // Moves from left to right
    public class ZigZagStrategy : DiagonalStrategy
    {
        public ZigZagStrategy(int speed, int aCycle): base(speed,aCycle)
        {
        }

        public override Point GetNext()
        {   // Verify if we are out of cycles to determine the direction

            UpdateSense();
            actualPosition = new Point(actualPosition.X + currentSense * speed, actualPosition.Y + speed);
            return actualPosition;
        }
    }
}
